package xin.pms.model;

import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;
import xin.pms.enums.MenuMethod;
import xin.pms.enums.MenuType;
import xin.pms.enums.OptPermission;

import java.io.Serializable;
import java.util.List;

/**
 * <pre>
 * Menu Node Model
 * </pre>
 *
 * @author lixin_ma@outlook.com
 * @version 1.0
 * @since 2018/7/28 15:54
 */
@Data
public class MenuNode implements Serializable {
    private String id;

    private String name;

    private String description;

    private String lable;

    private String icon;

    private String bigIcon;

    private String image;

    @Builder.Default
    private MenuMethod method = MenuMethod.blank;

    private String action;

    private String permissionCode;

    private String parentId;

    private String preId;

    @Builder.Default
    private Boolean visible = Boolean.TRUE;

    @Builder.Default
    private Boolean deleted = Boolean.FALSE;

    private MenuType type;

    private List<OptPermission> optPermissions;
}
